<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition>
	<h:form>

		<p:megaMenu orientation="vertial" style="margin-top:20px;width:200px">

			<p:menuitem style="width:90px" value="Messages"
				rendered="#{not empty userBean.self}"
				action="#{navigationBean.toMessages}" />
			<p:separator style="width:100%;height:1px" />
			<p:menuitem style="width:90px" value="Forums"
				action="#{navigationBean.toForums}" />
			<p:separator style="width:100%;height:1px" />
			<p:menuitem style="width:90px" value="Events"
				action="#{navigationBean.toEvents}" />
			<p:separator style="width:100%;height:1px" />
			<p:menuitem style="width:90px" value="Users"
				action="#{navigationBean.toUsers}" />
			<p:separator style="width:100%;height:1px" />
			<p:menuitem value="Personal info"
				rendered="#{not empty userBean.self}"
				action="#{profileBean.toSelfPage}" />


		</p:megaMenu>
	</h:form>
</ui:composition>

</html>